import { createRouter, createWebHashHistory, createWebHistory } from "vue-router";


export default createRouter({
    // history:createWebHashHistory(),
    history: createWebHistory(),
    routes: [
        {
            path: "/",
            redirect: "/login"
        },
        {
            path: "/login",
            component: () => import("../views/login.vue")
        },
        {
            name: "home",
            path: "/home",
            component: () => import("../views/admin/home.vue"),
            children: [
                {
                    name: "/",
                    path: "",
                    redirect: "/home/shouye"
                },
                {
                    name: "shouye",
                    path: 'shouye',
                    component: () => import("../views/admin/home/index.vue")
                }
            ]
        }

    ]
});